﻿@model Mockingbird.Core.Models.NewsFeedModel
@{
    Layout = null;
}
<li class="stream-item first">
    <div class="post">
        <div class="post-content">
            <div class="stream-item-header">
                <a class="account-group">
                    @Html.Gravatar(Model.Author.Email, 40, "size40")
                    <strong class="fullname">@Model.Author.Name</strong> <span>&rlm;</span> </a>
                <small class="time"><span>
                    @Model.Date.ToString() @(string.IsNullOrEmpty(Model.Location) ? string.Empty : ", " + Model.Location)</span></small>
            </div>
            <br />
            <p>
                @if (string.IsNullOrEmpty(Model.Text) && Model.Image != null)
                {
                    <img class="newsFeedImage" alt="@Model.Author.Name" src='@Url.Action("GetImage", "NewsFeed", new { postId = Model.Id })' />
                }
                else
                {
                    @Model.Text
                }
            </p>
            <br />
        </div>
    </div>
</li>
